package javaBase.chapter02;

public class judgeParity {
    public static void main(String[] args) {
        int num = 5; // 可以替换为任意整数
        if (num % 2 == 0) {
            System.out.println(num + " 是偶数");
        } else {
            System.out.println(num + " 是奇数");
        }
    }
}
